<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>测试</title>
    <link type="text/css" rel="stylesheet" href="/static/css/bootstrap.min.css"/>
    <script type="text/javascript" src="/static/js/jquery-1.10.2.min.js"></script>

</head>

<body>

<div class="container">
    <br/>

    <div class="center-block">
        <p><a class="btn btn-primary" role="button" href="/user/add">add</a></p>
    </div>
    <div class="row ">
        <table class="table table-bordered" style=" ">
            <th>姓名</th>
            <th>年龄</th>
            <th>操作</th>
            <c:forEach var="i" items="${users}">
                <tr>
                    <td> ${i.userName}
                    </td>
                    <td> ${i.age}
                    </td>
                    <td>
                        <a href="/user/deleteUser/${i.id}">删除</a>
                        <a href="/user/detail/${i.id}">userInfo</a>
                    </td>
                </tr>
            </c:forEach>
        </table>

    </div>
    ${a}
</div>

<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
</body>
</html>
